package code.gateplugins.libsvm;

import java.util.TreeMap;

public class Instance {
	/** Target class */
	private double y;

	/** Map of int-double attributes. Needs to be sorted in ascending order for libSVM */
	private TreeMap<Integer, Double> attributes;

	public Instance(double y, TreeMap<Integer, Double> attributes) {
		this.y = y;
		this.attributes = attributes;
	}

	public double getY() {
		return y;
	}

	public TreeMap<Integer, Double> getAttributes() {
		return attributes;
	}
}